﻿using System;
using System.Collections.Generic;

namespace Codeflows.Results
{
    public class JumpResult : Result
    {
        public JumpResult(string action, IDictionary<string, object> arguments)
        {
            if (string.IsNullOrWhiteSpace(action)) throw new ArgumentException("action is required.");
            if (arguments == null) throw new ArgumentNullException("arguments");
            Arguments = arguments;
            Action = action;
        }

        public IDictionary<string, object> Arguments { get; private set; }
        public string Action { get; private set; }
    }
}
